package com.zk.qqrobot.model;

import lombok.Builder;

import java.io.Serializable;
import java.util.Objects;

@Builder
public class Reward implements Serializable {
    private String qqNum;
    private String nick;
    private Double rewardTotal;

    public Reward() {
    }

    public Reward(String qqNum, String nick, Double rewardTotal) {
        this.qqNum = qqNum;
        this.nick = nick;
        this.rewardTotal = rewardTotal;
    }

    public String getQqNum() {
        return qqNum;
    }

    public void setQqNum(String qqNum) {
        this.qqNum = qqNum;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public Double getRewardTotal() {
        return rewardTotal;
    }

    public void setRewardTotal(Double rewardTotal) {
        this.rewardTotal = rewardTotal;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Reward reward = (Reward) o;
        return Objects.equals(qqNum, reward.qqNum) &&
                Objects.equals(nick, reward.nick);
    }

    @Override
    public int hashCode() {
        return Objects.hash(qqNum, nick);
    }
}
